#ifndef INOTEVIEW_H
#define INOTEVIEW_H

#include <QWidget>
#include "Note.h"
#include "DataProvider.h"

class INoteView : public QWidget
{
	Q_OBJECT

protected:
	DataProvider* _provider;

public:
	explicit INoteView(QWidget *parent = 0) : QWidget(parent), _provider(NULL) {}
	void setProvider(DataProvider* provider) {_provider = provider;}

	static QString getButtonStyle(QString btn){
		QString str = "QPushButton{background:url(:/png/rsc/BTN_normal.png);border:0px;}"
				"QPushButton:hover{background:url(:/png/rsc/BTN_hover.png);border:0px}"
				"QPushButton:pressed{background:url(:/png/rsc/BTN_pressed.png); position: relative;top: 1px; left: 1px;}";
		return str.replace("BTN",btn);
	}

signals:
	void onBtnAddNote();
	void onBtnEditNote(Note*);

public slots:
	void onBtnRemoveItem() {}
};

#endif // INOTEVIEW_H
